package cn.lefull.entity;

/**
 * @description:
 * @auther: qijiang
 * @date: 2018/12/25 15:24
 */

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @description: 公寓表
 * @author: qijiang email:jiang1211@foxmail.com
 * @date: 2018-12-05 16:49:14
 */
@Table(name = "apartment")
@Entity
@Data
public class Apartment  implements Serializable {

    private static final long serialVersionUID = 1L;

    /**唯一不重复id**/
    @Id
    //@GeneratedValue(strategy= GenerationType.AUTO)
    @Column(name = "apartment_id")
    private String  apartmentId ;

    /**公司ID**/
    @Column(name = "company_id")
    private Integer  companyId ;

    /**是否分散式**/
    @Column(name = "is_dispersion")
    private Integer  isDispersion ;

    /**公寓名**/
    @Column(name = "apartment_name")
    private String  apartmentName ;

    /**公寓编号**/
    @Column(name = "apartment_number")
    private String  apartmentNumber ;

    /**省份ID**/
    @Column(name = "province_id")
    private Integer  provinceId ;

    /**城市ID**/
    @Column(name = "city_id")
    private Integer  cityId ;

    /**区域ID**/
    @Column(name = "area_id")
    private Integer  areaId ;

    /**商圈ID**/
    @Column(name = "zone_id")
    private Integer  zoneId ;

    /**员工分组表ID**/
    @Column(name = "employee_group_id")
    private Integer  employeeGroupId ;

    /**公寓地址**/
    @Column(name = "address")
    private String  address ;

    /**经度**/
    @Column(name = "longitude")
    private BigDecimal longitude ;

    /**纬度**/
    @Column(name = "latitude")
    private BigDecimal  latitude ;

    /**是否有智能门锁**/
    @Column(name = "intelligent_lock")
    private Integer  intelligentLock ;

    /**操作人**/
    @Column(name = "operator_employee_id")
    private Integer  operatorEmployeeId ;
}
